<div class="row">
    <div class="col-md-12">
        <div class="widget stacked">
            <div class="widget-content">
            	<h1><?php echo $title.' '.$message[0]->patient_name; ?></h1>
                <div class="col-md-7">
            		<form role="form" class="form-horizontal" method="post" action="<?php echo site_url('Doctor/Message/reply/'.$message[0]->id_message); ?>">
						<div class="form-group">
							<label class="col-sm-2 control-label" for="sender"><?php echo $this->l('From'); ?></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="sender" value="<?php echo $message[0]->doctor_name; ?>" readonly="readonly">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="to"><?php echo $this->l('To'); ?></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="to" value="<?php echo $message[0]->patient_name; ?>" readonly="readonly">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="context"><?php echo $this->l('Context'); ?></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="context" name="context" value="<?php echo $message[0]->context; ?>" readonly="readonly">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="email"><?php echo $this->l('Email'); ?></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="email" value="<?php echo $message[0]->doctor_email; ?>" readonly="readonly">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label" for="date"><?php echo $this->l('Date'); ?></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="date" value="<?php 
                                            $date = date_create_from_format('Y-m-d H:i:s', @date('Y-m-d H:i:s'));
                                            echo date_format($date, 'd F Y').' at ';
                                            echo date_format($date, 'H:i A'); 
                                        ?>" readonly="readonly">
							</div>
						</div>
						<div class="form-group hidden">
							<label class="col-sm-2 control-label" for="id_consultation"><?php echo $this->l('Consultation'); ?></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="id_consultation" name="id_consultation" value="<?php echo $message[0]->id_consultation; ?>" readonly="readonly" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="message"><?php echo $this->l('Message'); ?></label>
							<div class="col-sm-10">
								<textarea class="form-control" id="message" name="message" rows="3"><?php echo set_value('message'); ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-2">
								
							</div>
							<div class="col-sm-10">
								<button type="submit" class="btn btn-default" name="btn_submit" value="1"><?php echo $this->l('Reply'); ?></button>
								<a class="btn btn-danger" href="<?php echo site_url('Doctor/Message/inbox/') ?>"><?php echo $this->l('Discard'); ?></a>
							</div>
						</div>
					</form>
                </div>
            </div><!-- box-content -->
        </div><!-- /.box -->
    </div><!-- /.col (MAIN) -->
</div>